﻿#include "SemiAutoMeasure/DialogSemiAutoMeasure.h"
#include "ui_DialogSemiAutoMeasure.h"


namespace Qly {
DialogSemiAutoMeasure::DialogSemiAutoMeasure(MeasureDataSet *dataset, QWidget *parent) :
    QDialog(parent),
    ui(new Ui::DialogSemiAutoMeasure)
{
    ui->setupUi(this);
    pDataSet = dataset;
    if(pDataSet)
    {
        ui->spinBox->setValue(pDataSet->m_lineWidthSA_width);
    }
}

DialogSemiAutoMeasure::~DialogSemiAutoMeasure()
{
    delete ui;
}

void Qly::DialogSemiAutoMeasure::on_spinBox_valueChanged(int arg1)
{
    if(pDataSet)
    {
        pDataSet->m_lineWidthSA_width = arg1;
    }
}

}


